/// <reference path="../../typings/tsd.d.ts" />
import * as $ from "jquery";
import { baseController } from './interfaceController';
import { memberModel } from '../models/memberModel';

export class homeController implements baseController {
    index() {
        let member = new memberModel('1', 'daichen');

        if (window.console && window.console.log) {
            window.console.log('测试member&product');
            window.console.log(memberModel);
            window.console.log($);
            window.console.log('end');
        }
        document.getElementById('root').innerHTML = 'this is a home page.';
        setTimeout(function() {
              $('#pjax-container>a').pjax();
        }, 2000);
    }
    render(s: string) {
        this.index();
    }
}

